<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    
</body>
<script src="../sort.js"></script>
<script>
const arr = [13, 6, 22, 10, 11, 9, 18, 22];
console.log('原始序列：',arr.join(','))
//该方法会改变原始序列
const q_arr = quickSort(arr);
console.log("快排结果：",q_arr.join(',')); // 输出: [1, 1, 2, 3, 6, 8, 10]
</script>
</html>